package github.saw96x.common.utils;

/**
 * @author Saw96x
 * @date 2022/3/18 8:39
 */
public class StringUtil {

  public static boolean isBlank(String s) {
    if (s == null || s.length() == 0) {
      return true;
    }
    for (int i = 0; i < s.length(); ++i) {
      if (!Character.isWhitespace(s.charAt(i))) {
        return false;
      }
    }
    return true;
  }
}
